/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.sanerzone.smscenter.modules.sms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sanerzone.jeebase.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 敏感词管理Entity
 * @author jianr.z
 * @version 2018-04-19
 */
public class SmsSensitiveWords extends DataEntity<SmsSensitiveWords> {
	
	private static final long serialVersionUID = 1L;
	private String sensitiveWords;		// 敏感词
	private String wordType;		// 敏感词类型
	private Date createtime;		// 创建时间
	
	public SmsSensitiveWords() {
		super();
	}

	public SmsSensitiveWords(String id){
		super(id);
	}

	public String getSensitiveWords() {
		return sensitiveWords;
	}

	public void setSensitiveWords(String sensitiveWords) {
		this.sensitiveWords = sensitiveWords;
	}
	
	@Length(min=0, max=64, message="敏感词类型长度必须介于 0 和 64 之间")
	public String getWordType() {
		return wordType;
	}

	public void setWordType(String wordType) {
		this.wordType = wordType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

}